package com.tjh.spring5.service;

import org.springframework.stereotype.Component;

/**
 * Create by koala on 2021-02-16
 * day19：
 * 在注解里面value属性值可以省略不写，
 * 默认值是类名称，首字母小写
 * UserService --> userService
 */

@Component(value = "userService1")  //<bean id="userService" class=".."/>
//@Service
public class UserService1 {

    public void add() {
        System.out.println("service add.......");
    }

}
